package com.zqh.myfmmall.result;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-01-19 21:40
 */
public enum ResultType{
    SUCCESS("200", "操作成功"),
    FAIL("400", "操作失败"),
    UNAUTHORIZED("401", "权限不足"),
    NOT_FOUND("404", "接口不存在"),
    INTERNAL_SERVER_ERROR("500", "服务器内部错误"),
    AGAIN_LOGIN("600", "请重新登录");


    private final String code;
    private final String name;

    private ResultType(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
